package learn_class;

class Car{
    String brand;
    public Car(String brand){
        this.brand = brand;
    }
    void start(){
        System.out.println(brand + "car starts.");
    }
}

public class object_and_class {
    public static void main(String[] args) {
        Car myCar = new Car("Toyota");
        myCar.start();
    }
}
